package com.galaxy.coupon.service;

import com.galaxy.coupon.domain.bo.PointsExchangeRuleBo;
import com.galaxy.coupon.domain.vo.PointsExchangeRuleVo;
import com.galaxy.common.mybatis.core.page.PageQuery;
import com.galaxy.common.mybatis.core.page.TableDataInfo;

/**
 * 积分兑换规则Service接口
 */
public interface IPointsExchangeRuleService {
    /**
     * 查询积分兑换规则列表
     */
    TableDataInfo<PointsExchangeRuleVo> queryPage(PointsExchangeRuleBo bo, PageQuery pageQuery);

    /**
     * 查询积分兑换规则详细信息
     */
    PointsExchangeRuleVo getInfo(Long id);

    TableDataInfo<PointsExchangeRuleVo> selectAllPointsExchangeRulesWithCoupons();

    PointsExchangeRuleVo selectPointsExchangeRuleWithCouponById(Long id);

    /**
     * 新增积分兑换规则
     */
    Boolean insertByBo(PointsExchangeRuleBo bo);

    /**
     * 修改积分兑换规则
     */
    Boolean updateByBo(PointsExchangeRuleBo bo);

    /**
     * 删除积分兑换规则
     */
    Boolean deleteById(Long id);
}
